from appium.webdriver.common.mobileby import MobileBy

from lagou.appium_exercise4.pages.base_page import BasePage
from lagou.appium_exercise4.pages.delete_member_page import DeleteMemberPage


class MemberDetailPage(BasePage):
    edit_ele = (MobileBy.XPATH, "//*[@text='编辑成员']")
    def go_to_delete_member(self):
        # 点击编辑成员
        self.find_and_click(*self.edit_ele)
        return DeleteMemberPage(self.driver)